package hu.kisprof.quizServer.controller;

import java.util.TimerTask;

public class CleanUpTask extends TimerTask {
	private QuizServerController controller;
	
	CleanUpTask(QuizServerController controller){
		super();
		this.controller = controller;
	}
	@Override
	public void run() {
			try{
				controller.cleanUsers();
				controller.cleanRooms();
			}catch(Exception e){
				e.printStackTrace();
			}
	}

}
